import request from '@/utils/request.js'
const SIGHTS_PATH = '/admin/sightsBooking'
const HOTEL_PATH = '/admin/hotelBooking'

// 查询景点预订列表
export const getSightsBookingList = ({ page, pageSize, name, status }) =>
  request.get(SIGHTS_PATH + '/getSightsBookingList', {
    params: { page, pageSize, name, status }
  })

// 导出景点预约信息到Excel
export const exportSightsBookingList = () =>
  request.get(SIGHTS_PATH + '/exportSightsBookingList')

// 查询酒店预订列表
export const getHotelBookingList = ({ page, pageSize, name, status }) =>
  request.get(HOTEL_PATH + '/getHotelBookingList', {
    params: { page, pageSize, name, status }
  })

// 导出酒店预约信息到Excel
export const exportHotelBookingList = () =>
  request.get(HOTEL_PATH + '/exportHotelBookingList')
